<?php 
$carpeta_contenedora = '';

if(strcmp($_SERVER['SERVER_NAME'],'localhost')==0 ){
	$carpeta_contenedora = '/tesil';
}else{
	$carpeta_contenedora = '/nuevo';
}

header("Location: http://".$_SERVER['SERVER_NAME'].$carpeta_contenedora."/empresa.php");
?>